﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="qxgl2.aspx.cs" Inherits="Admin_qxgl2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
    <div style=" height:30px; width:100%; margin-bottom:10px">
    <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/main.aspx">桌面</asp:HyperLink>
    &gt;&gt;<asp:HyperLink ID="HyperLink5" runat="server" 
        NavigateUrl="~/Admin/qxgl/qxgl.aspx" style=" color:red">管理员信息管理</asp:HyperLink>
    &gt;&gt;<asp:HyperLink ID="HyperLink6" runat="server" 
        NavigateUrl="~/Admin/qxgl/qxgl1.aspx" style=" color:red">管理员权限管理</asp:HyperLink>
    </div>
    <div>
    <table class="nav-justified">
        <tr>
            <td width="10%">
                <asp:Button ID="Button3" runat="server" Text="权限授予" onclick="Button3_Click" 
                    CssClass="btn01" />
            </td>
            <td>
                <asp:Button ID="Button4" runat="server" Text="权限回收" onclick="Button4_Click" 
                    CssClass="btn01" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    </div>
    <div style=" margin-top:20px;">
                        <asp:MultiView ID="MultiView1" runat="server">
            <asp:View ID="View1" runat="server">
                <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
                    DataKeyNames="Id" DataSourceID="LinqDataSource1" Width="100%" 
                    onrowdatabound="GridView2_RowDataBound" BackColor="White" 
                    BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                    GridLines="Vertical">
                    <AlternatingRowStyle BackColor="#DCDCDC" />
                    <Columns>
                        <asp:TemplateField HeaderText="序号"><ItemTemplate><asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
                            </ItemTemplate></asp:TemplateField>
                        <asp:BoundField DataField="authorityName" HeaderText="权限名称" 
                            SortExpression="authorityName" />
                        <asp:TemplateField HeaderText="选择"><ItemTemplate><asp:CheckBox ID="CheckBox1" 
                                runat="server" oncheckedchanged="CheckBox1_CheckedChanged" /></ItemTemplate><EditItemTemplate><asp:CheckBox ID="CheckBox1" runat="server" /></EditItemTemplate></asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                    <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#0000A9" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#000065" />
                </asp:GridView>
                <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                    ContextTypeName="DataClassesDataContext" EntityTypeName="" TableName="meun">
                </asp:LinqDataSource>
                <asp:Button ID="Button1" runat="server" Text="权限授予" onclick="Button1_Click" 
                    CssClass="btn01" />
            </asp:View>
            <asp:View ID="View2" runat="server">
               <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" 
                    DataKeyNames="Id" DataSourceID="LinqDataSource1" Width="100%" 
                    onrowdatabound="GridView2_RowDataBound" BackColor="White" 
                    BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                    GridLines="Vertical">
                    <AlternatingRowStyle BackColor="#DCDCDC" />
                    <Columns>
                        <asp:TemplateField HeaderText="序号"><ItemTemplate><asp:Label ID="Label2" runat="server" Text="Label"></asp:Label></ItemTemplate></asp:TemplateField>
                        <asp:BoundField DataField="authorityName" HeaderText="权限名称" 
                            SortExpression="authorityName" />
                        <asp:TemplateField HeaderText="选择"><ItemTemplate><asp:CheckBox ID="CheckBox2" runat="server" /></ItemTemplate><EditItemTemplate><asp:CheckBox ID="CheckBox2" runat="server" /></EditItemTemplate></asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                    <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#0000A9" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#000065" />
                </asp:GridView>
                <asp:Button ID="Button2" runat="server" Text="权限回收" onclick="Button2_Click" 
                    CssClass="btn01" />

            </asp:View>
        </asp:MultiView>
        </div>
</div>
</asp:Content>

